package com.jingjiu.homeservicesbiz.service.impl;

import java.util.List;

import com.jingjiu.homeservicesapi.domain.HouseService;
import com.jingjiu.homeservicesbiz.mapper.HouseServiceMapper;
import com.jingjiu.homeservicesbiz.service.IHouseServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;

/**
 * 家政服务：记录各种家政服务的基本信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-16
 */
@Service
public class HouseServiceServiceImpl implements IHouseServiceService
{
    @Autowired
    private HouseServiceMapper houseServiceMapper;

    /**
     * 查询家政服务：记录各种家政服务的基本信息
     * 
     * @param id 家政服务：记录各种家政服务的基本信息主键
     * @return 家政服务：记录各种家政服务的基本信息
     */
    @Override
    public HouseService selectHouseServiceById(Long id)
    {
        return houseServiceMapper.selectHouseServiceById(id);
    }

    /**
     * 查询家政服务：记录各种家政服务的基本信息列表
     * 
     * @param houseService 家政服务：记录各种家政服务的基本信息
     * @return 家政服务：记录各种家政服务的基本信息
     */
    @Override
    public List<HouseService> selectHouseServiceList(HouseService houseService)
    {
        return houseServiceMapper.selectHouseServiceList(houseService);
    }

    /**
     * 新增家政服务：记录各种家政服务的基本信息
     * 
     * @param houseService 家政服务：记录各种家政服务的基本信息
     * @return 结果
     */
    @Override
    public int insertHouseService(HouseService houseService)
    {
        return houseServiceMapper.insertHouseService(houseService);
    }

    /**
     * 修改家政服务：记录各种家政服务的基本信息
     * 
     * @param houseService 家政服务：记录各种家政服务的基本信息
     * @return 结果
     */
    @Override
    public int updateHouseService(HouseService houseService)
    {
        return houseServiceMapper.updateHouseService(houseService);
    }

    /**
     * 批量删除家政服务：记录各种家政服务的基本信息
     * 
     * @param ids 需要删除的家政服务：记录各种家政服务的基本信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseServiceByIds(String ids)
    {
        return 1;
    }

    /**
     * 删除家政服务：记录各种家政服务的基本信息信息
     * 
     * @param id 家政服务：记录各种家政服务的基本信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseServiceById(Long id)
    {
        return houseServiceMapper.deleteHouseServiceById(id);
    }
}
